/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package escr.persistencia;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Aditardo
 */
@Entity
@Table(name = "reportindi")
@NamedQueries({@NamedQuery(name = "Reportindi.findByIdReport", query = "SELECT r FROM Reportindi r WHERE r.idReport = :idReport"), @NamedQuery(name = "Reportindi.findByCodCuest", query = "SELECT r FROM Reportindi r WHERE r.codCuest = :codCuest"), @NamedQuery(name = "Reportindi.findByNomCuest", query = "SELECT r FROM Reportindi r WHERE r.nomCuest = :nomCuest"), @NamedQuery(name = "Reportindi.findByPoblaCues", query = "SELECT r FROM Reportindi r WHERE r.poblaCues = :poblaCues"), @NamedQuery(name = "Reportindi.findByCodDoc", query = "SELECT r FROM Reportindi r WHERE r.codDoc = :codDoc")})
public class Reportindi implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "ID_REPORT", nullable = false)
    private Integer idReport;
    @Column(name = "COD_CUEST")
    private Integer codCuest;
    @Column(name = "NOM_CUEST")
    private String nomCuest;
    @Column(name = "POBLA_CUES")
    private String poblaCues;
    @Column(name = "COD_DOC")
    private Integer codDoc;

    public Reportindi() {
    }

    public Reportindi(Integer idReport) {
        this.idReport = idReport;
    }

    public Integer getIdReport() {
        return idReport;
    }

    public void setIdReport(Integer idReport) {
        this.idReport = idReport;
    }

    public Integer getCodCuest() {
        return codCuest;
    }

    public void setCodCuest(Integer codCuest) {
        this.codCuest = codCuest;
    }

    public String getNomCuest() {
        return nomCuest;
    }

    public void setNomCuest(String nomCuest) {
        this.nomCuest = nomCuest;
    }

    public String getPoblaCues() {
        return poblaCues;
    }

    public void setPoblaCues(String poblaCues) {
        this.poblaCues = poblaCues;
    }

    public Integer getCodDoc() {
        return codDoc;
    }

    public void setCodDoc(Integer codDoc) {
        this.codDoc = codDoc;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idReport != null ? idReport.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Reportindi)) {
            return false;
        }
        Reportindi other = (Reportindi) object;
        if ((this.idReport == null && other.idReport != null) || (this.idReport != null && !this.idReport.equals(other.idReport))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "escr.persistencia.Reportindi[idReport=" + idReport + "]";
    }

}
